﻿using UnityEngine;
using System.Collections;


public class Road : MonoBehaviour {
	string tag = "Road";
	static int tc = 0;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
	}


	void OnTriggerEnter2D(Collider2D collider) {
		if (collider.gameObject.CompareTag("CollisionWall")) {
			// Destroy
			Debug.Log("ngdlong_" + tc++  + "_" + tag + " " + "CollisionWall");
			RoadController.rc.RepeatRoad();
		}
	}
}
